package com.system.provider;

import com.am.ui.grid.AbstractBaseGridProvider;
import java.util.Map;

public class ApproveListProvider extends AbstractBaseGridProvider
{
  public String generateSql(Map<String, Object> map)
  {
    StringBuffer sf = new StringBuffer("SELECT t2.id,t1.create_time,t1.user_name,t1.place,t1.campus,t1.notes,t2.type FROM sys_out_storage t1,sys_approve t2 WHERE t1.id=t2.out_storage_id AND t2.approve_user_id=:currentUserId AND t2.status=:status");

    setParamMap(map);
    return sf.toString();
  }
}